package com.dy.design_pattern_study.builder_pattern.dome1;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-03-28
 * @Content 指挥者（Director）
 */
public class PersonDirector {
    private PersonBuilder pb;

    public PersonDirector(PersonBuilder pb) {
        this.pb = pb;
    }

    public void createPerson() {
        pb.BuildHead();
        pb.BuildBody();
        pb.BuildArmLeft();
        pb.BuildArmRight();
        pb.BuildLegLeft();
        pb.BuildLegRight();
    }
}
